var o = require("./Utils.js"), i = require("./Utils_Share.js"),
    a = require("./ConfigCdn.js"),
    r = require("./EventName.js"),
    s = require("./NetWork.js"), l = require("./MyNotificationCenter.js"),
    c = require("../Model/UserProfile.js"),
    d = require("./MsgHandler.js"),
    u = require("../Model/RoomInfoModel.js"),
    h = require("../Model/TableModel.js"),
    f = require("./SpriteAtlas.js"),
    p = require("./bilog_events.js"),
    g = require("../Model/ActivityTaskModel.js");
require("./HttpService");
var b = {
    isDebug: tywx.StateInfo.debugMode,
    VERSION: tywx.StateInfo.VERSION,
    CLIENTID: tywx.SystemInfo.clientId,
    intClientId: tywx.SystemInfo.intClientId,
    GAMEID: 201,
    GAMEID_NORMAL: 201,
    GAMEID_ERREN: 203,
    GAMEID_ERRENQUICK: 282,
    host: tywx.SystemInfo.webSocketUrl,
    loginUrl: tywx.SystemInfo.loginUrl,
    resUrl: tywx.SystemInfo.cdnPath,
    bilogUrl: tywx.SystemInfo.biLogServer,
    deviceId: tywx.SystemInfo.deviceId,
    wxAppId: tywx.SystemInfo.wxAppId,
    appId: tywx.SystemInfo.appId,
    hallId: 9999,
    ApiVersion: 5,
    cloudId: tywx.SystemInfo.cloudId,
    adid: "adunit-782e4271144d73e4",
    bodyAdID: "adunit-25a9726cfc27be2d",
    adUnitId: {
        adUnitId: "adunit-cba0c080c6e00d8e"
    },
    adTaskUnitId: {
        adUnitId: "adunit-75dd40a9df48853c"
    },
    eventId: 99990001,
    rec_type: 2,
    playModel: {
        XUEZHAN: "xuezhan",
        XUELIU: "xueliu",
        FRIENDTABLE: "friendtable",
        DAZHONG: "dazhong",
        ERREN: "erren",
        ERRENQUICK: "errenQuick"
    },
    SEAT_DOWN: 0,
    SEAT_RIGHT: 1,
    SEAT_UP: 2,
    SEAT_LEFT: 3,
    PLAY_NUM: 4,
    playState: {
        WAITING: "waiting",
        READY: "ready",
        SIT: "sit",
        PLAY: "play",
        WIN: "win",
        CONFIRM_LOOSE: "confirm_loose"
    },
    tileColor: {
        TILE_COLOR_NULL: -1,
        TILE_COLOR_WAN: 0,
        TILE_COLOR_TONG: 1,
        TILE_COLOR_TIAO: 2
    },
    winMode: {
        GangKai: 2,
        QiangGang: 3,
        JiePao: 1,
        ZiMo: 0,
        DianPao: -1,
        Lose: -2,
        BaoZhuang: -3,
        GangShangPao: -4,
        YiPaoDuoXiang: -5,
        HaiDiPao: -6
    },
    sex: {
        Boy: 0,
        Girl: 1
    },
    tableType: {
        CREATE: "create",
        NORMAL: "normal",
        SCORE_TABLE: "score_table"
    },
    QueryTag: {
        inviteFriReward: "inviteFriReward",
        groupRank: "groupRank",
        inviteToFriRoom: "inviteToFriRoom",
        getRedPacket: "getRedPacket"
    },
    RankType: {
        FRIEND: 0,
        GROUP: 1,
        MINE: 2
    },
    rewardType: {
        GROUP: 1,
        FRIEND: 2,
        TIME: 3,
        SUCC_COUNT: 4,
        FREE_GIVE: 5,
        TASK_SHARE: 6,
        DAHU_SHARE: 7
    },
    shareText: ["亲，三缺一，就差你了！", "点点手指，帮我一起领金币！", "没别的，就问你敢不敢来一局", "四亿人都在玩的麻将", "好友酱，快来一起打麻将", "超厉害，下个雀神就是你!", "上班偷偷玩，还能领金币"],
    shareId: {
        hallShare: 1,
        groupRank: 2,
        friRoomInvite: 3,
        rewardInvite: 4,
        bigHuInvite: 5,
        winningInvite: 6,
        poolRewardInvite: 7,
        friRoomShare: 8,
        RedPacket: 9
    },
    sharePointId: {
        hallShare: "hallShare",
        groupRank: "groupRank",
        friRoomInvite: "friRoomInvite",
        rewardInvite: "rewardInvite",
        bigHuInvite: "bigHuInvite",
        winningInvite: "winningInvite",
        poolRewardInvite: "poolRewardInvite",
        friRoomShare: "friRoomShare",
        RedPacket: "RedPacket",
        RookieManRedPacket: "RookieManRedPacket",
        doubleBonus: "doubleBonus",
        Recoup: "Recoup"
    },
    roomId: "201900",
    MysteriousRoomId: "201205",
    shopType: {
        COIN: "coin",
        DIAMOND: "diamond"
    },
    Channel: {
        tuyou: "tuyou",
        meitu: "meitu",
        scmjapp: "scmjapp"
    },
    channelName: "tuyou",
    taskState: {
        RECEIVE: "领取",
        TOFINISH: "去完成",
        RECEIVED: "已领取"
    },
    buyType: {
        buycoin: "buycoin",
        zhuanyun: "zhuanyun",
        revenge: "revenge"
    },
    SYSTEMTYPE: {
        iphoneOtherType: 1,
        iPhoneXType: 2,
        ANDROIDOther: 3,
        iPhone7P8PType: 4,
        ANDROIDVIVO85: 5
    },
    _isHadFirstRecharge: !1,
    Unit: {
        Bei: "倍",
        Fan: "番"
    },
    undoKindIdInTask: {
        100052: 1,
        100057: 1,
        100056: 1,
        100059: 1,
        100060: 1,
        100061: 1,
        100066: 1,
        100067: 1
    },
    undoKindIdInActivity: {
        100058: 1
    },
    Activities: {
        NO1: ["100052"],
        NO2: [],
        NO3: ["100059", "100060", "100061"],
        NO4: ["100058"]
    },
    nodeAdCrossScale: .8,
    AlreadyWatchVideoNums: 0,
    isHaveRookieManTask: !0,
    peoplePlayGameNums: 0
};
window.Global = {
    config: b,
    netWork: new s(),
    notificationCenter: new l(),
    eventName: require("./EventName.js"),
    BILogEvents: p,
    utils: new o(),
    utils_Share: new i(),
    configCdn: new a(),
    msgHandler: new d(),
    spriteAtlas: new f(),
    userProfile: new c(),
    roomInfoModel: new u(),
    tableModel: new h(),
    ActivityTaskModel: new g()
}, Global.notificationCenter.ctor(), Global.utils.ctor(), Global.utils_Share.ctor(),
    Global.msgHandler.ctor(), Global.roomInfoModel.ctor(), Global.tableModel.ctor(),
    Global.configCdn.ctor(), Global.ActivityTaskModel.ctor(), Global.gameClubButton = null,
    Global.videoAd = null, Global.bannerAd = null, Global.myLaunchOption = null, Global.persistNodeComps = null,
    Global.isLogined = !1, Global._isInBackground = !0;
Global.SetGameId = function (e) {
    Global.config.GAMEID = e;
}, Global.GetIsFirstRecharge = function () {
    var e = Global.config._isHadFirstRecharge;
    return tywx.UserInfo.isiPhone && (e = !0), e;
}, Global.SetIsFirstRecharge = function (e) {
    Global.config._isHadFirstRecharge = e;
}
